/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.LSPCompliance.Impl;

import za.ac.cput.LSPCompliance.AccountIntrfc;


/**
 *
 * @author Leo
 */
public class SmartAccnt implements AccountIntrfc  {
     private int defaultPeriod;
     int balance;
     int period;
     
 public SmartAccnt(){
 
 }
public SmartAccnt(int bal, int period) {
      
    }

  
    public boolean closeAccount()
    {
   
    if(balance>0 && period>defaultPeriod)
    return true;
    else
    return false;
}
public int getDefaultPeriod() {
    return defaultPeriod;
}

public void setDefaultPeriod(int dfltPrd) {
defaultPeriod = dfltPrd;
}

    @Override
    public void closeAnAccount(CheqAccnt acc) {
          System.out.println("Account close"+acc.closeAccount());
    }
    
}
